package com.air.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;

/**
 * 博客表
 *
 * @author shent
 */
@Data
@TableName(value = "air_blog")
public class Blog {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 是否原创
     */
    @TableField(value = "is_create")
    private Boolean isCreate;

    /**
     * 类别
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 标签
     */
    @TableField(value = "`label`")
    private String label;

    /**
     * 推荐等级
     */
    @TableField(value = "recommend_level")
    private Integer recommendLevel;

    /**
     * 点击数
     */
    @TableField(value = "click_count")
    private Integer clickCount;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 标题图
     */
    @TableField(value = "title_img")
    private String titleImg;

    /**
     * 博客内容
     */
    @TableField(value = "content")
    private String content;
}
